Skip to content

Applies to

netstandard2.0

public IDisposable ScheduleRelative<TState>(TState state, TRelative dueTime, Func<IScheduler, TState, IDisposable> action)

Summary: Schedules an action to be executed at dueTime.

Type parameters

NameDescription
TStateThe type of the state passed to the scheduled action.

Parameters

NameTypeDescription
stateTStateState passed to the action to be executed.
dueTimeTRelativeRelative time after which to execute the action.
actionFuncAction to be executed.

Returns: IDisposable -- The disposable object used to cancel the scheduled action (best effort).